package org.lib.mongodbhello.try2.entity;

import java.util.Date;

import lombok.Data;

/**
 * 试验2-User2
 * @author ben
 * @date 2021-08-25 16:13:10 CST
 */
@Data
public class User2 {

	private String id;
	
	private String name;
	private Integer age;
	private Date createTime;
	private Date updateTime;
	
	/**
	 * 构造函数
	 * @param name
	 * @param age
	 */
	public User2(String name, Integer age) {
		this.name = name;
		this.age = age;
		Date now = new Date();
		this.createTime = now;
		this.updateTime = now;
	}
	
}
